package Pages;

/**
 * Xpath and keywords of elements in menu and menu's pages
 */
public class MenuPages {

    public String Menu(int i) {
        String[] data = {"//*[@href='/technologies']", "//*[@href='/news']", "//*[@href='/markets']",
                "//*[@href='/companies']", "//*[@href='/parts']", "//*[@href='/ads']", "//*[@href='/community']",
                "//*[@href='/store']"};
        return data[i];
    }

    public String menuPage(int i) {
        String[] data = {"Technologies", "News", "Markets", "Company Directory", "Parts Directory", "Ads", "Community", "Store"};
        return data[i];
    }

    public String technologiesMenu(int i){
        String[] data = {"/technologies/4g", "/technologies/analog", "/technologies/android","/technologies/boards",
                "/technologies/communications", "/technologies/components","/technologies/dsps", "/technologies/dev-tools",
                "/technologies/digital-ics", "/technologies/displays", "/technologies/electromechanical",
                "/technologies/embedded", "/technologies/fpgas", "/technologies/interconnects", "/technologies/memory",
                "/technologies/microcontrollers", "/technologies/microprocessors", "/technologies/power",
                "/technologies/power-sources", "/technologies/test-and-measurement", "/technologies/wifi",
                "/technologies/windows-8", "/technologies/ios"};
        return data[i];
    }

    public String technologiesPage(int i) {
        String[] data ={"4G", "Analog", "Android", "Boards", "Communications", "Components", "DSPs", "Dev Tools",
                "Digital ICs", "Displays", "Electromechanical", "Embedded", "FPGAs", "Interconnects", "Memory",
                "Microcontrollers", "Microprocessors", "Power", "Power sources", "Test & Measurement", "WiFi",
                "Windows 8", "iOS"};
        return data[i];
    }

    public String newsMenu(int i){
        String[] data = {"/news/products", "/news/trends-and-analysis",
                "/news/europe-news", "/news/electronic-design-europe"};
        return data[i];
    }

    public String newsPage(int i){
        String[] data = {"Products", "Trends & Analysis", "Europe News", "Electronic Design Europe"};
        return data[i];
    }

    public String marketsMenu(int i){
        String[] data = {"/markets/automotive", "/markets/defencive",  "/markets/energy", "/markets/lightning",
                "/markets/medical", "/markets/mobile", "/markets/robotics"};
        return data[i];
    }

    public String marketsPage(int i){
        String[] data = {"Automotive", "Defencive", "Energy", "Lightning", "Medical", "Mobile", "Robotics"};
        return data[i];
    }

    public String communityMenu(int i){
        String[] data = {"/forums", "/community/our-editors"};
        return data[i];
    }

    public String communityPage(int i){
        String[] data = {"Forums", "Our Editors"};
        return data[i];
    }

    public String nextButton() {return "//*[contains(text(),'›')]";}

    public String previousButton() {return "//*[contains(text(),'‹')]";}
}
